angular.module('lazyModule', [])
.service('lazyService', function($http) {
    return {
        load: function() {
            return $http.get('https://api.github.com/users/github')
        }
    };
})
.controller('lazyCtrl', function($scope, $ocLazyLoad, lazyService) {
    lazyService.load()
        .then(res => {
            $scope.name = res.data.bio;
        })
})


/*
'use strict';

angular.module('TestService', []).factory('lazyService', function() {
    return "Hello World";
});

angular.module('TestModule', ['TestService', 'oc.lazyLoad'])

.controller('lazyCtrl', ['$scope', 'lazyService', function($scope, lazyService) {
    $scope.name = lazyService;
}]);
*/